package com.ruoyi.demo3.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.demo3.mapper.CheckRecordMapper;
import com.ruoyi.demo3.domain.CheckRecord;
import com.ruoyi.demo3.service.ICheckRecordService;

/**
 * 开始审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-18
 */
@Service
public class CheckRecordServiceImpl implements ICheckRecordService 
{
    @Autowired
    private CheckRecordMapper checkRecordMapper;

    /**
     * 查询开始审核
     * 
     * @param checkRecordId 开始审核主键
     * @return 开始审核
     */
    @Override
    public CheckRecord selectCheckRecordByCheckRecordId(Long checkRecordId)
    {
        return checkRecordMapper.selectCheckRecordByCheckRecordId(checkRecordId);
    }

    /**
     * 查询开始审核列表
     * 
     * @param checkRecord 开始审核
     * @return 开始审核
     */
    @Override
    public List<CheckRecord> selectCheckRecordList(CheckRecord checkRecord)
    {
        return checkRecordMapper.selectCheckRecordList(checkRecord);
    }

    /**
     * 新增开始审核
     * 
     * @param checkRecord 开始审核
     * @return 结果
     */
    @Override
    public int insertCheckRecord(CheckRecord checkRecord)
    {
        return checkRecordMapper.insertCheckRecord(checkRecord);
    }

    /**
     * 修改开始审核
     * 
     * @param checkRecord 开始审核
     * @return 结果
     */
    @Override
    public int updateCheckRecord(CheckRecord checkRecord)
    {
        return checkRecordMapper.updateCheckRecord(checkRecord);
    }

    /**
     * 批量删除开始审核
     * 
     * @param checkRecordIds 需要删除的开始审核主键
     * @return 结果
     */
    @Override
    public int deleteCheckRecordByCheckRecordIds(Long[] checkRecordIds)
    {
        return checkRecordMapper.deleteCheckRecordByCheckRecordIds(checkRecordIds);
    }

    /**
     * 删除开始审核信息
     * 
     * @param checkRecordId 开始审核主键
     * @return 结果
     */
    @Override
    public int deleteCheckRecordByCheckRecordId(Long checkRecordId)
    {
        return checkRecordMapper.deleteCheckRecordByCheckRecordId(checkRecordId);
    }
}
